-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Upgrade to sbt 1.2.3, properly report problems to sbt #5106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1b761b6
to
10d1cdb
Compare
project/Build.scala
Outdated
@@ -928,6 +928,7 @@ object Build { | |||
// sbt plugin to use Dotty in your own build, see | |||
// https://github.com/lampepfl/dotty-example-project for usage. | |||
lazy val `sbt-dotty` = project.in(file("sbt-dotty")). | |||
enablePlugins(ScriptedPlugin). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the newer SbtPlugin?
We should experiment with sbt/sbt#3891. It introduces two new options to the scripted tests:
|
ca685e8
to
9a96668
Compare
We cannot use sbtVersion.value for compiler-interface and zinc-api-info anymore because sbt 1.2.3 uses Zinc 1.2.2
3af53c8
to
4800292
Compare
We're getting a ClassCastException in the scripted test but it's probably harmless: sbt/sbt#4361 |
Looks like a no go. |
Also before that there is:
|
Too bad. No speedup for the scripted tests then... |
The new image has updated dependencies and is based on Ubuntu instead of Alpine.
Dotty has its own logic for displaying problems with the proper file path, position, and caret, but if we store this information in Problem#message we end up with duplicated information in the output since Zinc will prepend/append similar things (see sbt.internal.inc.ProblemStringFormats). So far, we worked around this in Dotty by using an empty position in the sbt bridge reporter, but this means that crucial semantic information that could be used by a Build Server Protocol implementation and other tools is lost. Thanks to sbt/zinc#588 we can now fully customize how the message is displayed to the user using Problem#rendered, so we can now store the position information without any adverse effect.
e090a29
to
cbff210
Compare
No description provided.